/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projectwerkjeasfx;

import java.io.IOException;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;

/**
 *bekijken van http://fxexperience.com/2012/02/restricting-input-on-a-textfield/
 *
 * @author student
 */
public class ProjectwerkjeAsFX extends Application {
    
    @Override
    public void start(Stage stage) throws IOException {
        Parent root;// abolut  is /appt/
        root = FXMLLoader.load(getClass().getResource("/be/djdb/shop/FX/Shop.fxml"));

        Scene scene = new Scene(root);
        stage.setTitle("");
        stage.setScene(scene);
        
        
        stage.show();
        stage.setOnShown(new EventHandler<WindowEvent>() {
            @Override
            public void handle(WindowEvent t) {
                throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
            }
        });
    }
    /**
     * The main() method is ignored in correctly deployed JavaFX application.
     * main() serves only as fallback in case the application can not be
     * launched through deployment artifacts, e.g., in IDEs with limited FX
     * support. NetBeans ignores main().
     *
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        launch(args);
    }
}
